package com.zhuozhengsoft.pageoffice6springboot2back.controller;

import com.zhuozhengsoft.pageoffice.PDFCtrl;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;


@RestController
@RequestMapping(value = "/POPDF")
public class POPDFController {

    @RequestMapping(value = "/PDF")
    public String showPdf(HttpServletRequest request) {
        PDFCtrl pdfCtrl = new PDFCtrl(request);
        pdfCtrl.webOpen("/doc/POPDF/test.pdf");
        return pdfCtrl.getHtml();
    }
}
